﻿@using DIS.Infrastructure.Entities.Entity;
@{
    ViewBag.Title = "CityTaxiFeeSummary";
    Layout = "~/Views/Shared/_Layout.cshtml";
    ItemListBox<CityTaxi> feelist = ViewBag.feelist;
}
<table width="98%" border="0" align="center" cellpadding="2" cellspacing="1" bgcolor="#D6D6D6">
    <tr>
        <td height="27" colspan="8" background="/content/img/tbg.gif" bgcolor="#E7E7E7">
            <table width="96%" border="0" cellspacing="1" cellpadding="1">
                <tr>
                    <td width="24%" style="padding-left: 10px;">
                        <b>市内交通费列表</b>
                    </td>
                    <td width="76%" align="right">
                        <b>&nbsp;</b>
                    </td>
                </tr>
            </table>
        </td>
    </tr>
    <tr bgcolor="#FBFCE2">
        <td width="10%" height="24" align="center">
            年月
        </td>
         <td width="25%" align="center">
            项目
        </td>
        <td width="10%" height="24" align="center">
            开始日期
        </td>
        <td width="10%" align="center">
            结束日期
        </td>
        
        <td width="8%" align="center">
            交通费
        </td>
        <td width="7%" align="center">
            发票数
        </td>
       
        <td width="10%" align="center">
            详情
        </td>
    </tr>
    @{
        if (feelist != null && feelist.Data != null && feelist.Data.Any())
        {
             
          foreach(var item in  feelist.Data)
          {   
        <tr bgcolor="#FFFFFF" align="center" class="hover">
            <td width="10%">@(item.Year)年@(item.Month)月
            </td>
            <td width="15%" align="center">@item.project.ProjectName (@item.project.ProjectCode)
            </td>
            <td width="10%" height="24" align="center">@item.StartDate
            </td>
            <td width="10%" align="center">@item.EndDate
            </td>
            
            <td width="8%" align="center">@item.TaxiFee
            </td>
            <td width="7%" align="center">@item.InvoiceCount
            </td>
             
            <td>
                <a href="/SummaryData/CityTaxiFeeSummaryDetail?year=@item.Year&month=@item.Month&projectid=@item.ProjectId"  ><u>详情</u></a> 
            </td>
        </tr>
            }
        }
    }
    <tr bgcolor="#F9FCEF">
        <td colspan="8" align="right">@Html.Raw(feelist.PageItemSegment)
        </td>
    </tr>
</table>
